/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.fd.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.fd.domain.bo.DocumentAttachmentBO;
import com.xy.biz.fd.domain.query.DocumentAttachmentQuery;

/**
 *
 *
 * @author wcs
 * @date 2021-2-19
 */
public interface DocumentAttachmentManager {

	/**
	 * 保存
	 *
	 * @param documentAttachmentBO
	 */
	int saveDocumentAttachment(DocumentAttachmentBO documentAttachmentBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllDocumentAttachment(Collection<DocumentAttachmentBO> collection);

	/**
	 * 更新
	 *
	 * @param documentAttachmentBO
	 */
	int updateDocumentAttachment(DocumentAttachmentBO documentAttachmentBO);

	/**
	 * 删除
	 *
	 * @param documentAttachmentId
	 */
	int deleteDocumentAttachment(Long documentAttachmentId);

	/**
	 * 查找一个
	 *
	 * @param documentAttachmentId
	 * @return
	 */
	DocumentAttachmentBO getDocumentAttachment(Long documentAttachmentId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<DocumentAttachmentBO> listDocumentAttachmentById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<DocumentAttachmentBO> listDocumentAttachment(DocumentAttachmentQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countDocumentAttachment(DocumentAttachmentQuery query);

}
